package com.qf.commerce.mapper;


import com.qf.commerce.common.dto.AccountDto;
import com.qf.commerce.common.dto.AccountDto2;
import com.qf.commerce.common.vo.AccountVo;
import com.qf.commerce.entity.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountMapper {

    //增
   int insertAccount(@Param("accountDto") AccountDto accountDto);
   //删
   int deleteAccount(@Param("ids") List<Long> ids);

   //改更新
   int updateAccount(@Param("accountId")Long accountId,@Param("account")Account account);
   int updateRole(@Param("organizationId")Long organizationId,@Param("roleId")Long roleId,@Param("accountId")Long accountId);
    int updatePassword(@Param("accountPassword")String accountPassword,@Param("accountId")Long accountId);




   //查

    List<AccountVo> selectAccount(@Param("organizationName") String organizationName,@Param("status")Integer status,@Param("accountName")String accountName,@Param("userName")String userName,@Param("roleName")String roleName);


   List<AccountDto> selectAccountDetail(@Param("accountId")Long accountId);



    //个人信息模块
    List<AccountDto2> selectPersonDetailById(@Param("accountId")Long accountId);
    int updatePersonDetailById(@Param("accountId")Long accountId,@Param("account")Account account);
}

